cmake_minimum_required(VERSION 3.16)

project (hello_library)

##################################################################
# Create a library
##################################################################

# Generate the shared library from the library sources
add_library(hello_library SHARED
	src/Hello.cpp
)
add_library(hello::library ALIAS hello_library)

target_include_directories(hello_library
	PUBLIC
		${PROJECT_SOURCE_DIR}/include
)

##################################################################
# Create a executable
##################################################################

# Add an executable with the above sources
add_executable(hello_binary
	src/main.cpp
)

target_link_libraries(hello_binary
	PRIVATE
		hello::library
)

